<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: social_buttons.php 140 2013-09-22 07:44:23Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 140 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 07:44:23 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

$box_smarty = new Smarty();

if(isset($_GET['cPath']) && !$product->isProduct())
	$link = href_link(FILENAME_DEFAULT, 'cPath='.(int)$_GET['cPath']);
elseif($_GET['coID'] == 5)
	$link = HTTP_SERVER.DIR_WS_CATALOG;
else {
	$url = explode('?', $_SERVER['REQUEST_URI']);
	$link = HTTP_SERVER.$url[0];
}

$content = '';

$content .= '<span class="left w90"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="SEO_mercari">Tweet</a><script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script></span>';

$content .= '<div class="left w145"><div id="fb-root"></div><script>(function(d,s,id) {var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id = id;js.src="//connect.facebook.net/de_DE/all.js#xfbml=1";fjs.parentNode.insertBefore(js,fjs);}(document,\'script\',\'facebook-jssdk\'));</script><div class="fb-like" data-href="'.$link.'" data-send="false" data-layout="button_count" data-width="90" data-show-faces="false" data-font="verdana"></div></div>';

$content .= '<span class="left w60"><script type="text/javascript">window.___gcfg = {lang: \'de\'};(function() {var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true;po.src = \'https://apis.google.com/js/plusone.js\';var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s);})();</script><span class="g-plusone"></span></span>';

$box_smarty->assign('BOX_CONTENT', $content);

$box_smarty->caching = false;
$box_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
$box_smarty->assign('html_tpl_path', CURRENT_TEMPLATE.'/html');
$box_smarty->assign('language', $_SESSION['language']);
$box_content = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_social_buttons.html');